home *** CD-ROM | disk | FTP | other *** search
/ Nebula 2 / Nebula Two.iso / NextAnswers / PeopleDemo_sybase / MainController.h < prev    next >
Text File  |  1994-06-24  |  1KB  |  59 lines

  1. #import <appkit/appkit.h>
  2. #import <eointerface/eointerface.h>
  3. #import <eoaccess/eoaccess.h>
  4.  
  5.  
  6. @interface MainController:Object
  7. {
  8.     id masterController;
  9.          
  10.     id formMatrix;
  11.     id textField;
  12.     id sortMatrix;
  13.     
  14.     id    rootEntity;
  15.     
  16.     id insertButton;
  17.     id masterTableview;
  18.     id optionsPanel;
  19.     id sqlPanel;
  20.     id text;
  21.     
  22.     EOAdaptorChannel    *adaptorChannel;
  23.     EODatabaseChannel    *dbChannel;
  24.     EODatabaseDataSource *dbDataSource;
  25.     
  26. }
  27.  
  28. - init;
  29. - appDidInit:sender;
  30. - setDelegates;
  31. - setUpFetch:sender;
  32. - fetch:sender;
  33. - insert:sender;
  34. - newRecord:sender;
  35. - (BOOL) validateRecord;
  36. @end
  37.  
  38. @interface MainController (EOAdaptorDelegation)
  39. - (void)adaptorChannel:channel
  40.     didEvaluateExpression:(NSString *)expression;    
  41. @end
  42.  
  43.  
  44. @interface MainController (EOControllerDelegation)
  45. - (NSDictionary *)controller:(EOController *)controller willSave: (NSDictionary *)edits object:object; 
  46. - (BOOL)controller:controller willInsertObject:object inDataSource:dataSource;
  47. - (BOOL) controllerWillDiscardEdits:(EOController *)controller;
  48. - (EODataSourceFailureResponse)controller:(EOController *)controller
  49.     failedToInsertObject:object
  50.     inDataSource:dataSource;
  51. - (void)controller:(EOController *)controller didInsertObject:object
  52.       inDataSource:dataSource;
  53. - (void)controller:(EOController *)controller
  54.       didUpdateObject:object inDataSource:dataSource;
  55. @end
  56.  
  57. @interface Text(showSQL)
  58. - appendToText:(const char *)newText;
  59. @end